using UnityEngine;
using System.Collections;

public enum SystemMessageType
{
	ASSIGN_PLAYER_NUM,
	ASSIGN_PLAYER_TEAM,
	SET_MAP,
};

public class SystemMessage : Message 
{
	public SystemMessageType type;
	public int data;
	public SystemMessage(string buffer)
	{
		messageBuffer = buffer;
		unPack();
	}
	public override void unPack ()
	{
		//M#TYPE#DATA
		string[] mes = messageBuffer.Split('#');
		type = (SystemMessageType)int.Parse(mes[0]);
		data = int.Parse(mes[1]);
	}
}
